package com.hkccommunity.dto;

import com.hkccommunity.entity.Problem;
import com.hkccommunity.entity.User;

public class ProblemDto extends Problem {
    //提问人全部信息
    private User questioner;

    //标签
    private String[] label;

    //回答数量
    private Integer answerCount;

    public ProblemDto() {
    }

    public ProblemDto(User questioner, String[] label, Integer answerCount) {
        this.questioner = questioner;
        this.label = label;
        this.answerCount = answerCount;
    }

    public ProblemDto(Long problemId, String title, String content, String img, Long readCount, String createTime, Long createUser, String problemLabel, Integer delete, User questioner, String[] label, Integer answerCount) {
        super(problemId, title, content, img, readCount, createTime, createUser, problemLabel, delete);
        this.questioner = questioner;
        this.label = label;
        this.answerCount = answerCount;
    }

    public User getQuestioner() {
        return questioner;
    }

    public void setQuestioner(User questioner) {
        this.questioner = questioner;
    }

    public String[] getLabel() {
        return label;
    }

    public void setLabel(String[] label) {
        this.label = label;
    }

    public Integer getAnswerCount() {
        return answerCount;
    }

    public void setAnswerCount(Integer answerCount) {
        this.answerCount = answerCount;
    }
}
